<?php
$this->context->layout = false ;
?>
<!doctype html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>系统管理</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1" name="viewport">
    <meta content="" name="description">
    <meta content="" name="author">
    <link href="/css/site-login/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="/css/site-login/login.min.css" rel="stylesheet" type="text/css">
    <link rel="shortcut icon" href="favicon.ico">
</head>
<body class=" login" id="dummybodyid">
<div class="logo" style="font-size: 26px;text-decoration: none;color:#337ab7">后台系统</div>

<div class="content">
    <form class="login-form" action="<?php \yii\helpers\Url::to("site/login")?>" method="post" onsubmit="return checkForm();">
        <h3 class="form-title font-green">登录</h3>
        <?php if (Yii::$app->session->hasFlash('success')): ?>
            <div class="alert alert-success alert-dismissable">
                <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                <?= Yii::$app->session->getFlash('success') ?>
            </div>
        <?php endif; ?>
        <?php if (Yii::$app->session->hasFlash('error')): ?>
            <div class="alert alert-danger alert-dismissable">
                <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                <?= Yii::$app->session->getFlash('error') ?>
            </div>
        <?php endif; ?>
        <div class="form-group">
            <input class="form-control form-control-solid placeholder-no-fix" autocomplete="off" placeholder="用户名" name="LoginForm[username]" type="text"> </div>
        <div class="form-group">
            <input class="form-control form-control-solid placeholder-no-fix" autocomplete="off" placeholder="密码" name="LoginForm[password]" type="password"> </div>
        <div class="form-actions">
            <input name="LoginForm[rememberMe]" value="1" type="hidden">
            <input name="<?=Yii::$app->request->csrfParam?>" value="<?=Yii::$app->request->getCsrfToken();?>" type="hidden">
            <button type="submit" class="btn green uppercase btn-block" name="login-button" style="color: #FFF;background-color: #32c5d2; border-color: #32c5d2;">登录</button>
        </div>
    </form>
</div>

<!--<div class="content">-->
<!--    <br>-->
<!--    <br>-->
<!--    <h3 class="login-box-msg">企业微信登录</h3>-->
<!---->
<!--    <br>-->
<!--    <a href="https://open.work.weixin.qq.com/wwopen/sso/qrConnect?appid=wx8b33a83c35e4412c&agentid=1000007&redirect_uri=http://crm.4009910868.com/index.php?r=site/login&state=web_login@gyoss9">-->
<!--        <img src="/images/login_blue_big.png">-->
<!--    </a>-->
<!--    <br>-->
<!--    <br>-->
<!--    <br>-->
<!--</div>-->
<script src="/js/jquery1_11.min.js" type="text/javascript"></script>
<script src="/js/bootstrap.min.js" type="text/javascript"></script>
<script>
    function checkForm() {
        if($('input[name="LoginForm[username]"]').val() == '' || $('input[name="LoginForm[password]"]').val() == '' ){
            alert('输入用户名和密码');
            return false;
        }
    }
</script>
</body>
</html>